using TerritoryGame.Domain.Entities;

namespace TerritoryGame.Domain.Entities.App
{
    public class GameRoom : EntityBase
    {
        public string RoomName { get; set; } = string.Empty;
        public int MaxPlayers { get; set; }
        public int GameDuration { get; set; } // 游戏时长（分钟）
        public GameStatus Status { get; set; }
        public Player Creator { get; set; } = null!;
        public List<Player> Players { get; set; } = new();
        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public string? CanvasData { get; set; } // 画布数据（可选，用于保存游戏状态）
    }

    public enum GameStatus
    {
        Waiting,    // 等待中
        Ready,      // 准备就绪（已进入游戏界面）
        Playing,    // 游戏中
        Finished    // 已结束
    }
}
